package net.wanho.service.impl;

import lombok.RequiredArgsConstructor;
import net.wanho.mapper.ProductMapper;
import net.wanho.po.Product;
import net.wanho.service.IndexService;
import net.wanho.vo.ProductVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-10-25 10:55
 * Description：<描述>
 */
@Service
@RequiredArgsConstructor
public class IndexServiceImpl implements IndexService {

    private final ProductMapper productMapper;

    @Override
    public List<ProductVo> inventWarning() {
        List<ProductVo> list = productMapper.selectInventWarning();
        return list;
    }
}
